package com.huawei.hwid.update.d;

import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.huawei.hwid.core.d.l;

public class g extends b {
    private String a;

    protected AlertDialog a() {
        int a = l.a(f(), "cs_update_message_new");
        int a2 = l.a(f(), "CS_install");
        Builder builder = new Builder(f(), g());
        builder.setMessage(f().getString(a, new Object[]{f().getString(l.a(f(), "cs_update_title"))}));
        builder.setPositiveButton(a2, new OnClickListener(this) {
            final /* synthetic */ g a;

            {
                this.a = r1;
            }

            public void onClick(DialogInterface dialogInterface, int i) {
                this.a.e();
            }
        });
        builder.setNegativeButton(l.a(f(), "cs_cancel"), new OnClickListener(this) {
            final /* synthetic */ g a;

            {
                this.a = r1;
            }

            public void onClick(DialogInterface dialogInterface, int i) {
                this.a.b();
            }
        });
        return builder.create();
    }

    public void a(String str) {
        this.a = str;
    }
}
